// 用户模块 例如积分 用户名 余额变动
const initState = {
    userName: 'hahaha'
}

const userReducer = (state=initState, action) => {
    switch (action.type) {
        case 'changeName':
            return {
                ...state,
                userName: action.userName
            }
    
        default:
            return state
    }
}

export default userReducer